package com.ruoyi.activiti.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class BizBusiness implements Serializable
{
    //
    private static final long serialVersionUID = -7562556845627977390L;

    @Id
    @KeySql(useGeneratedKeys = true)
    private Long              id;

    private String            title;

    private Long              userId;

    private String            tableId;

    private String            procDefId;

    private String            procDefKey;

    private String            procInstId;

    // 流程名称
    private String            procName;

    // 当前任务节点名称
    private String            currentTask;

    private String            applyer;

    private Integer           status;

    private Integer           result;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date              applyTime;

    private Boolean           delFlag;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public BizBusiness setId(Long id) {
        this.id = id;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public String getProcDefId() {
        return procDefId;
    }

    public BizBusiness setProcDefId(String procDefId) {
        this.procDefId = procDefId;
        return this;
    }

    public String getProcDefKey() {
        return procDefKey;
    }

    public BizBusiness setProcDefKey(String procDefKey) {
        this.procDefKey = procDefKey;
        return this;
    }

    public String getProcInstId() {
        return procInstId;
    }

    public BizBusiness setProcInstId(String procInstId) {
        this.procInstId = procInstId;
        return this;
    }

    public String getProcName() {
        return procName;
    }

    public void setProcName(String procName) {
        this.procName = procName;
    }

    public String getCurrentTask() {
        return currentTask;
    }

    public BizBusiness setCurrentTask(String currentTask) {
        this.currentTask = currentTask;
        return this;
    }

    public String getApplyer() {
        return applyer;
    }

    public void setApplyer(String applyer) {
        this.applyer = applyer;
    }

    public Integer getStatus() {
        return status;
    }

    public BizBusiness setStatus(Integer status) {
        this.status = status;
        return this;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public BizBusiness setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
        return this;
    }
}
